﻿
#ifndef __GeoSearchViewController__
#define __GeoSearchViewController__

#include "CrossApp.h"
#include "AppTool.h"

USING_NS_CC;

class GeoSearchViewController : public CAViewController, public GeocodeDelegate
{
    
public:

	GeoSearchViewController();
    
	virtual ~GeoSearchViewController();
    
protected:
    
    void viewDidLoad();
    
    void viewDidUnload();

	void geocodeBtClicked(CAControl* ctrl, DPoint point);

	void regeocodeBtClicked(CAControl* ctrl, DPoint point);

	virtual void onGetGeocodeAddress(int code, std::vector<GeocodeAddress> v_addrs);

	void geocodeSchedule(float t);

	void regeocodeSchedule(float t);

	virtual void onGetRegeocodeInfo(int code, RegeocodeInfo info) override;

	CALabel* lb1;

	CALabel* lb2;

	int m_iCode;

	std::vector<GeocodeAddress> v_GeocodeAddress;

	RegeocodeInfo regeocodeInfo;
};


#endif
